package com.yunsc.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.common.utils.PageUtils;
import com.yunsc.common.utils.Query;

import com.yunsc.dao.YunscGoodsImageDao;
import com.yunsc.module.entity.YunscGoodsImageEntity;
import com.yunsc.service.YunscGoodsImageService;


@Service("yunscGoodsImageService")
public class YunscGoodsImageServiceImpl extends ServiceImpl<YunscGoodsImageDao, YunscGoodsImageEntity> implements YunscGoodsImageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YunscGoodsImageEntity> page = this.page(
                new Query<YunscGoodsImageEntity>().getPage(params),
                new QueryWrapper<YunscGoodsImageEntity>()
        );

        return new PageUtils(page);
    }

}